<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/10 0010
 * Time: 13:32
 */
$client = new Swoole\Client(SWOOLE_SOCK_TCP);
$client->connect('127.0.0.1', 9801);
$body = '554665488';
//for ($i = 0; $i <= 100; $i++) {
    $data = pack('N', strlen($body)) . $body;
    $client->send($data);
//}

$client->close();